package controller;

import javax.swing.JFrame;
import javax.swing.JPanel;

import boundary.ISMainGui;
import boundary.InformationStationOneTimeCostumerOrderGui;
import boundary.InformationStationOrderCheckInGui;
import boundary.InformationStationSubscriptionGui;
import boundary.MainGui;
import boundary.SubscriptionOrderGui;

public class InformationStation {

	public void subscriptionCheckIn() 
	{
		JFrame frame=ISMainGui.getFrame();
		InformationStationSubscriptionGui isGui=new InformationStationSubscriptionGui();
		isGui.setLastPanel((JPanel)frame.getContentPane());
		isGui.setFrame(frame);
		frame.setContentPane(isGui);
		frame.setVisible(true);
		
	}

	public void orderCheckIn() 
	{
		JFrame frame=ISMainGui.getFrame();
		InformationStationOrderCheckInGui isGui=new InformationStationOrderCheckInGui();
		isGui.setLastPanel((JPanel)frame.getContentPane());
		isGui.setFrame(frame);
		frame.setContentPane(isGui);
		frame.setVisible(true);
		
	}

	public void oneTimeCostumerOrder() 
	{
		JFrame frame=ISMainGui.getFrame();
		InformationStationOneTimeCostumerOrderGui isGui=new InformationStationOneTimeCostumerOrderGui();
		isGui.setLastPanel((JPanel)frame.getContentPane());
		isGui.setFrame(frame);
		frame.setContentPane(isGui);
		frame.setVisible(true);
		
	}


}
